package com.xyyl.patient.core.constant;

/**
 * @ClassName: HttpStatusEnum
 * @Description:response status
 * @author chens
 * @date 2017年8月17日
 *
 */
public enum HttpStatusEnum {
	SUCCESS("200", "请求成功", "SC_OK"),
	SERVER_ERROR("500", "服务器端异常", "Internal Server Error"),
	SERVER_FAIL("405", "自定义提示","Oper fail"), 
	BAD_REQUEST("400", "错误的请求", "Bad Request"), 
	NOT_ALLOWED("405", "方法未允许", "Method Not Allowed");

	private String code;

	private String msg;

	private String description;

	public String getCode() {
		return code;
	}

	private HttpStatusEnum(String code, String msg, String description) {
		this.code = code;
		this.msg = msg;
		this.description = description;

	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
